<?php
namespace app\common\model;

use think\Model;

class Order extends Model
{
    protected  $autoWriteTimestamp = true;
    public function add($data) {
        $data['status'] = 1;
        //$data['create_time'] = time();
        $this->save($data);
        /*echo $this->getLastSql();exit;*/
        return $this->id;
    }


}